package com.ky.user.controller;

import com.ky.common.vo.R;
import com.ky.user.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/post")
public class PostController {
    @Autowired
    private PostService postService;
    @RequestMapping("/findAll")
    public R findAll() {
        return postService.findAll();
    }
}
